import { httpCreate, CommonResponse } from "./http";
const http = httpCreate("/srv/capital");

export const capital = {
	// 提现审核分页列表
	fundRecord<T>(params: {
		pageNum: number,
		pageSize: number,
		startTime: number,
		endTime: number,
		status: number,
		keyWord: string,
	}) {
		return http.get<T, CommonResponse>(`/fundRecord/super/pageList`, { params });
	},
	// 提现审核
	fundRecordAudit<T>(id: number, isPass: boolean) {
		return http.put<T, CommonResponse>(`/fundRecord/audit/${id}/${isPass}`)
	},
	fundRecordBill<T>(params: {
		userId: number,
		pageSize: number,
		pageNum: number,
	}) {
		return http.get<T, CommonResponse>(`/fundRecord/pageList`, { params })
	},
};
